/**
 * ipassbook 0.6.0
 * Copyright (C)2009 wateray and contributors
 * wateray@gmail.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package com.wateray.ipassbook.domain.form;

import java.io.Serializable;

import com.wateray.ipassbook.domain.Entity;
import com.wateray.ipassbook.domain.Receipt;

/**
 * @author wateray
 * @create 2009-5-24
 */
public class ReceiptForm extends Receipt implements Entity, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String currencyName;
	private	String	passbookName;
	private	String	subjectName;


	/**
	 * @return the currencyName
	 */
	public String getCurrencyName() {
		return currencyName;
	}

	/**
	 * @param currencyName the currencyName to set
	 */
	public void setCurrencyName(String currencyName) {
		this.currencyName = currencyName;
	}

	/**
	 * @return the passbookName
	 */
	public String getPassbookName() {
		return passbookName;
	}

	/**
	 * @param passbookName the passbookName to set
	 */
	public void setPassbookName(String passbookName) {
		this.passbookName = passbookName;
	}

	/**
	 * @return the subjectName
	 */
	public String getSubjectName() {
		return subjectName;
	}

	/**
	 * @param subjectName the subjectName to set
	 */
	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}

	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("ReceiptForm[");
		sb.append(getReceiptId());
		sb.append(",");
		sb.append(getReceiptDay());
		sb.append(",");
		sb.append(subjectName);
		sb.append(",");
		sb.append(getAmount());
		sb.append(",");
		sb.append(currencyName);
		sb.append(",");
		sb.append(passbookName);
		sb.append("]");
		
		return sb.toString();
	}
	
	/* (non-Javadoc)
	 * @see com.wateray.ipassbook.domain.Entity#getEntityId()
	 */
	@Override
	public String getEntityId() {
		// TODO Auto-generated method stub
		return getPassbookDetailId();
	}

	/* (non-Javadoc)
	 * @see com.wateray.ipassbook.domain.Entity#getEntityName()
	 */
	@Override
	public String getEntityName() {
		// TODO Auto-generated method stub
		return null;
	}

}
